package com.star.learn.excel.controller;

import com.star.learn.excel.service.ExcelService;
import jakarta.annotation.Resource;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/excel")
public class ExcelController {

    @Resource
    private ExcelService excelService;

    @GetMapping("/process")
    public ResponseEntity<String> processExcelFiles() {
        excelService.processExcelFiles();
        return ResponseEntity.ok("Excel processing started");
    }
}
